package com.example.service;

import com.example.dto.VehicleRequestDTO;
import com.example.dto.VehicleResponseDTO;
import org.springframework.stereotype.Service;

@Service
public class DemoService {

    public String sayHello() {
        return "Hello, World!";
    }

    public String processRequestBody(String requestBody) {
        return "Processed request: " + requestBody;
    }

    public VehicleResponseDTO processVehicle(VehicleRequestDTO vehicleRequest) {
        int vehicleId = vehicleRequest.getVehicleId();
        VehicleResponseDTO response = new VehicleResponseDTO();
        response.setVehicleId(vehicleId);
        response.setStatus("Vehicle processed successfully");
        return response;
    }
}
